<?php
include('../../include/functions.inc.php');
include('../../include/inputbuilder.inc.php');
include('../../include/maintenance.inc.php');

$maintenance = unserialize($_SESSION['mPensum']);
$list = $db->query_select("cllg_career", NULL);
?>
<form id="<?php echo $maintenance->formName; ?>" name="<?php echo $maintenance->formName; ?>" method="POST" action="<?php echo $maintenance->saveNewUrlPage; ?>">
    <table class=""  width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <th><legend>DATOS PENSUM</legend></th>
            <th >
            <legend><div style="margin-left: 30%" class="btn-group">
                    <input type="button" name="cmdOk" id="cmdOk" value="Guardar" class="btn btn-info" onClick="javascript:formOkBt($(this.form),updateAction);jQuery('#cmAddcontainer').show();" />     
                    <input type="button" name="cmdCancel" id="cmdCancel" value="Cancelar" class="btn btn-info" onClick="loadTable();jQuery('#cmAddcontainer').show();" />
                </div></legend>
            </th>
        </tr>
        <tr>
            <td colspan="2"><br/><table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr>
                        <td width="20%">CODIGO </td>
                        <td width="80%"><input name="CODE" type="text" id="CODE" />          </td>
                    </tr>

                    <tr>
                        <td>CARRERA</td>
                        <td><select name="FK_CAREER" id="FK_CAREER">
                                <?php foreach ($list as $it) { ?>
                                    <option value="<?php echo $it["ID"]; ?>"><?php echo $it["NAME"]; ?> </option>
                                <?php } ?>
                            </select></td>
                    </tr>
                    <tr>
                        <td>CANTIDAD CICLOS</td>
                        <td><input name="CYCLES" type="text" id="CYCLES" /></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>



                </table></td>
        </tr>
    </table>
</form>  


